package com.rhb.web.struts.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;

import com.rhb.web.struts.form.MenuForm;

public class MenuAction extends BaseAction {
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response){

		ActionErrors errors = new ActionErrors();
		MenuForm menuForm = (MenuForm) form;
		
		System.out.println("the menuNo is " + menuForm.getMenuNo());
		
		return mapping.findForward(menuForm.getMenuNo());
	}

}
